<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header" ></head>


<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <h3>选课列表</h3>
    <hr>

    <a th:href="@{/courseSelection/new}" class="btn btn-primary btn-sm mb-3">选课</a>
    <br>
    <table class="table table-bordered table-striped bx">
        <thead class="thead-dark">
        <tr>
            <th>学生姓名</th>
            <th>课程名称</th>
            <th>课程性质</th>
            <th>已选人数</th>
        </tr>

        </thead>
        <tbody>
        <tr th:each="acourseSelection: ${courseSelectionDtos}">
            <td th:text="${acourseSelection.name}"></td>
            <td th:text="${acourseSelection.curriculumName}"></td>
            <td th:text="${acourseSelection.nature}"></td>
            <td  th:text="${acourseSelection.num}"></td>
       </tr>
        </tbody>
    </table>
</div>




</body>
</html>